<?php
    if(!$this->session->userdata('logged_in')) {
        redirect('logout');
    } else if($this->session->userdata('role') !== 'admin') {
        redirect('forbidden');
    }
?>

<h1>
    <?php
        $group_name = $group_to_delete['group_name'];
        $group_id = $group_to_delete['group_id'];
    ?>
    
    Are you sure you want to delete <?php echo "$group_name"; ?>?
    
</h1>

<?php echo '<form method="post" action="../../groups_c/sure_delete/'.$group_id.'">'; ?>
        <input type="submit" value="yes" name="yes" id="yes" />
        <input type="submit" value="no" name="no" id="no" />
<?php echo '</form>'; ?>